package com.example.administrator.daydayappmarket.recommend.moduls;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * Created by Administrator on 2016/12/28.
 */

public class GsonSpecial {

    /**
     * theme_type : topic
     * data : {"banner":"/uploads/topics/a/2/a2d34771f2e762fc230c7499cafcbc3b.jpg","lead_content":"2016年还有几天就要结束，这一年你是否完成了自己的运动目标？如果还没有，那就来继续坚持吧~","type":"software","id":"247","created_at":"2016-12-28 10:11:42","title":"为你的身材\u201c加特效\u201d"}
     */

    private String theme_type;
    private DataBean data;

    public String getTheme_type() {
        return theme_type;
    }

    public void setTheme_type(String theme_type) {
        this.theme_type = theme_type;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * banner : /uploads/topics/a/2/a2d34771f2e762fc230c7499cafcbc3b.jpg
         * lead_content : 2016年还有几天就要结束，这一年你是否完成了自己的运动目标？如果还没有，那就来继续坚持吧~
         * type : software
         * id : 247
         * created_at : 2016-12-28 10:11:42
         * title : 为你的身材“加特效”
         */

        private String banner;
        private String lead_content;
        private String type;
        private String id;
        private String created_at;
        private String title;

        public void jsonParse(JSONObject jsonObject){
            try {
                banner = jsonObject.getString("banner");
                lead_content = jsonObject.getString("lead_content");
                type = jsonObject.getString("type");
                id = jsonObject.getString("id");
                created_at = jsonObject.getString("created_at");
                title = jsonObject.getString("title");
            } catch (JSONException e) {
                e.printStackTrace();
            }
        }
        public String getBanner() {
            return banner;
        }

        public void setBanner(String banner) {
            this.banner = banner;
        }

        public String getLead_content() {
            return lead_content;
        }

        public void setLead_content(String lead_content) {
            this.lead_content = lead_content;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getCreated_at() {
            return created_at;
        }

        public void setCreated_at(String created_at) {
            this.created_at = created_at;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }


    }
}
